# -*- coding: utf-8 -*-
"""
版权所有：J哥
微信号：wws_0904
author : Laity
Description: 发送短信路由
(?P<mobile>1[3-9]\d{9})
"""
from rest_framework.documentation import include_docs_urls  # api文档
from django.contrib import admin
from django.urls import path, include, re_path
from . import views

urlpatterns = [
    re_path('^smscode/api/(?P<email>\w{1,}@\w{1,}.(com|cn|com.cn))/',
            views.SMSCodeView.as_view())
]

# #匹配QQ号
# def qq_match(str1):
#     res = re.match(r"^[1-9]\d{3,9}$",str1)

# 匹配邮箱
# def email_match(str1):
#     #12312313413@sdeqwe.com
#     res = re.findall(r"(\w{1,}@\w{1,}.(com|cn|com.cn)$)",(str1))
#     print(res)
# ^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$
